# 8.10
def show_messages(messages):
     for message in messages:
        print(message)

def send_messages(messages,snet_messages):
    while messages:
        current_message = messages.pop()
        sent_messages.append(current_message)


messages = ["How are you","What's your name","Who is her"]
sent_messages =[]
show_messages(messages)
send_messages(messages,sent_messages)
print('The final list:')
print(f"messages:{messages}")
print(f"sent_messages:{sent_messages}")